import request from '@/utils/request'

// 查询关键指标主列表
export function listHomeIndicators(query) {
  return request({
    url: '/indicators/homeIndicators/list',
    method: 'get',
    params: query
  })
}

// 查询关键指标主详细
export function getHomeIndicators(id) {
  return request({
    url: '/indicators/homeIndicators/' + id,
    method: 'get'
  })
}

// 保存关键指标主
export function saveHomeIndicators(data) {
  return request({
    url: '/indicators/homeIndicators/save',
    method: 'post',
    data: data
  })
}

// 删除关键指标主
export function delHomeIndicators(id) {
  return request({
    url: '/indicators/homeIndicators/' + id,
    method: 'delete'
  })
}

// 导出关键指标主
export function exportHomeIndicators(query) {
  return request({
    url: '/indicators/homeIndicators/export',
    method: 'get',
    params: query
  })
}

